package com.h2.ref.server.web.error;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.h2.ref.server.web.ViewConstants;

@Controller
public class ErrorController {

   @RequestMapping(value = ViewConstants.ERROR_GENERIC)
   public String handleError(Model model) {
      return ViewConstants.ERROR_GENERIC_VIEW;
   }
   
   @RequestMapping(value = ViewConstants.ERROR_NOT_FOUND)
   public String handleNotFound(Model model) {
      return ViewConstants.ERROR_NOT_FOUND_VIEW;
   }
}
